﻿using Furion.DatabaseAccessor;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace JQData.Core.DbModel
{
    public class HotMoney : EntityNotTenant
    {
        /// <summary>
        /// 游资名称
        /// </summary>
        [MaxLength(50)]
        public string Name { get; set; }

        /// <summary>
        /// 说明
        /// </summary>
        [MaxLength(2000)]
        public string Desc { get; set; }

        /// <summary>
        /// 关联机构
        /// </summary>
        [MaxLength(4000)]
        public string Orgs { get; set; }

        ///// <summary>
        ///// 胜率
        ///// </summary>
        //public double WinRate { get; set; }

        ///// <summary>
        ///// 总盈利
        ///// </summary>
        //public decimal Revenue { get; set; }



        public void Configure(EntityTypeBuilder<HotMoney> entityBuilder, DbContext dbContext, Type dbContextLocator)
        {
            entityBuilder.HasIndex(e => e.Name).IsUnique();
        }
    }
}
